<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE>Administrator's Control Panel</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="{PUB}admin/style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3157" name=GENERATOR>
<script type="text/javascript" src="{PUB}js/jquery.js"></script>
<script type="text/javascript" src="{PUB}js/swfupload/swfupload.js"></script>
<script type="text/javascript" src="{PUB}js/swfupload/handlers.js"></script>
<script type="text/javascript" src="{PUB}js/swfupload/fileprogress.js"></script>
<link href="{PUB}js/swfupload/swfupload.css" rel="stylesheet" type="text/css" />
</HEAD>
<BODY id=main>
<script type="text/javascript">
var swfu;
window.onload = function () {	
	swfu = new SWFUpload({
		upload_url: "{url}util/uploads/1/{cid}",
		file_size_limit : "10 MB",
		file_types : "*.jpg;*.gif;*.png;*.bmp",//允许上传的文件类型 
		file_types_description : "JPG Images",
		file_upload_limit : "0",
		file_queued_handler : fileQueued,
		file_queue_error_handler : fileQueueError,
		file_dialog_complete_handler : fileDialogComplete,
		upload_progress_handler : uploadProgress,
		upload_error_handler : uploadError,
		upload_success_handler : uploadSuccess,
		upload_complete_handler : uploadComplete,
		button_image_url : "{PUB}js/swfupload/images/SmallSpyGlassWithTransperancy_17x18.png",
		button_placeholder_id : "spanButtonPlaceholder",
		button_width: 120,
		button_height: 18,
		button_text : '<span class="button">选择图片(可多选)</span>',
		button_text_style : '.button { font-family: Helvetica, Arial, sans-serif; font-size: 12px; }',
		button_text_top_padding: 0,
		button_text_left_padding: 18,
		button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
		button_cursor: SWFUpload.CURSOR.HAND,
		flash_url : "{PUB}js/swfupload/swfupload.swf",
		custom_settings : {
			progressTarget : "fsUploadProgress",
			cancelButtonId : "btnCancel"
		},
		debug: false
	});
};

</script>
<FORM name="upload" method="POST" action="" enctype="multipart/form-data" onsubmit="return check_form(this)" >
<h2>创建作品</h2>
<table cellspacing="0" cellpadding="0" width="100%"  class="maintable">
<tr><th>作品分类</th><td>{category}</td></tr>
<tr><th>作品上传</th><td>
<div class="fieldset flash" id="fsUploadProgress">
	<span class="legend">要上传的作品队列</span>
</div>
<div style="display: inline; border: solid 1px #7FAAFF; background-color: #C5D9FF; padding: 2px;">
<span id="spanButtonPlaceholder"></span>&nbsp;
<input type="button" value="开始上传" class="btn_startupload" onclick="swfu.startUpload();"/>
</div>
<div id="thumbnails"></div>
</td></tr>
</table>
</table>
</form>
<br>
</BODY></HTML>
